﻿using CozeDomain.Entities;
using CozeDto.RechargeHistoryDtos;
using D.UtilCore.Dtos;
using D.UtilFreesqlOrm;

namespace CozeDomain.IServices
{
    /// <summary>
    /// 用户充值接口
    /// </summary>
    public interface IRechargeHistoryService : IBaseService<RechargeHistoryEntity>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="reqAddRechargeHistory"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddRechargeHistoryAsync(ReqAddRechargeHistory reqAddRechargeHistory);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteRechargeHistoryAsync(List<string> ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="reqUpdateRechargeHistory"></param>
        /// <returns></returns> 
        Task<ApiResult<int>> UpdateRechargeHistoryAsync(ReqUpdateRechargeHistory reqUpdateRechargeHistory);


        /// <summary>
        /// 单个查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns> 
        Task<ApiResult<RepRechargeHistoryInfo>> GetRechargeHistoryAsync(string id);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="reqQueryRechargeHistoryPage"></param>
        /// <returns></returns>
        Task<ApiResult<PageModel<RepRechargeHistoryInfo>>> QueryRechargeHistoryPagesAsync(ReqQueryRechargeHistoryPage reqQueryRechargeHistoryPage);
    }
}
